<ul id="food_intakes">
<?php $i = 1; while($i <= 6) : ?>
    <li><a href="/?date=<?=$this->date?>&food_intake_code=<?=$i?>"<?php if($i == $this->food_intake):?> class="active"<?endif;?>><?=$i?></a></li>
<?php $i++; endwhile; ?>
</ul>

<h2><?php echo format_date($this->date, 'd, F') . ' / ' . $this->food_intake; ?></h2>

<div id="statistic">
    <div class="left">
        <?=$this->render('index/_form.phtml')?>
        <div id="calendar_navigation"></div>
    </div>
    
    <div class="left"><?=$this->render('index/_list.phtml')?></div>
    <div class="clear"></div>
</div>


<script type="text/javascript">
    var date = '<?=$this->date?>';
</script>